<%-- 
    Document   : sms_report
    Created on : Sep 12, 2013, 9:09:48 AM
    Author     : fikri
--%>

<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" media="screen" href="${pageContext.request.contextPath}/css/new_design/layout.css">
        <link rel="stylesheet" media="screen" href="${pageContext.request.contextPath}/css/jquery-ui.css">
        <title>Laporan Penghantaran SMS</title>
        <script src="${pageContext.request.contextPath}/js/jquery-1.8.2.js" type="text/javascript"></script>
        <script src="${pageContext.request.contextPath}/js/jquery-ui-1.9.0.custom.js" type="text/javascript"></script>
        <script src="${pageContext.request.contextPath}/js/jquery-plugin-validate.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(document).ready (function(){
                 $('.date').datepicker({
                    dateFormat: 'dd/mm/yy',
                    showOn: "button",
                    buttonImage: "${pageContext.request.contextPath}/images/calendar.gif",
                    buttonImageOnly: true,
                    changeMonth: true,
                    changeYear: true
                });
                
                $('form').submit( function () {
                    return formValidation();
                }); 
            });
            function cetak(param){
                var url = '${pageContext.request.contextPath}/report?' + param;
               popupWindow = window.open(
                url,'popUpWindow',
                'height=450,width=630,resizable=no,scrollbars=no,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
            }
        </script>

    </head>
    <body>
        <s:messages/>
        <s:errors/> 
        <br/>
        <s:useActionBean beanclass="th.stripes.util.ListUtil" id="listUtil" />
        <s:form action="/report" class="niceform">
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>
                    Carian Laporan Penghantaran SMS
                </h3>   
                <p>
                    <label><font color="red">*</font>Tarikh Penghantaran :</label>
                    <s:text name="tarikhHantar" id="" class="date required" formatType="date" formatPattern="dd/MM/yyyy" size="10"/>&nbsp;
                </p>
                <p>
                    <label>No Telefon :</label>
                    <s:text name="noPhone" id=""/>&nbsp;
                </p>
                <p>
                    <label>Status Penghantaran :</label>
                    <s:select name="statusPenghantaran">
                        <s:option value="">Sila Pilih</s:option>
                        <s:option value="ACCEPTED">ACCEPTED</s:option>
                        <s:option value="DELIVERED">DELIVERED</s:option>
                        <s:option value="UNDELIVERED">UNDELIVERED</s:option>
                        <s:option value="PROCESSED">PROCESSED</s:option>
                    </s:select>
                </p>
                <p align="center">                    
                    <s:submit name="searchSmsReport" value="Cari" class="button green button_blockUI"/>                    
                </p>
            </div>
            <div>
                <display:table name="${actionBean.senaraiSms}" class="tablecloth" id="row" style="width:100%">
                    <display:column title="No."><center>${row_rowNum}</center></display:column>                    
                    <display:column title="No Telefon"><center>${row.noTel}</center></display:column>
                    <display:column title="Status Penghantaran"><center>${row.deliveryNotification}</center></display:column>
                    </display:table>
            </div>
           
        </s:form>
    </body>
</html>


